﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AJWPFAdmin.Services.Migrations
{
    /// <inheritdoc />
    public partial class addchengduapi : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "SystemConfigDictionaries",
                columns: new[] { "Key", "BooleanValue", "CreateDate", "DecimalValue", "IntValue", "StringValue", "UpdateDate" },
                values: new object[] { (short)1007, false, new DateTime(2024, 11, 26, 0, 0, 0, 0, DateTimeKind.Unspecified), 0m, 0, null, null });

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreateDate",
                value: new DateTime(2024, 12, 22, 21, 14, 2, 596, DateTimeKind.Local).AddTicks(3870));

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreateDate",
                value: new DateTime(2024, 12, 22, 21, 14, 2, 596, DateTimeKind.Local).AddTicks(3890));

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreateDate",
                value: new DateTime(2024, 12, 22, 21, 14, 2, 596, DateTimeKind.Local).AddTicks(3900));
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "SystemConfigDictionaries",
                keyColumn: "Key",
                keyValue: (short)1007);

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreateDate",
                value: new DateTime(2024, 11, 26, 11, 40, 21, 236, DateTimeKind.Local).AddTicks(5011));

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreateDate",
                value: new DateTime(2024, 11, 26, 11, 40, 21, 236, DateTimeKind.Local).AddTicks(5072));

            migrationBuilder.UpdateData(
                table: "SystemDictionaries",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreateDate",
                value: new DateTime(2024, 11, 26, 11, 40, 21, 236, DateTimeKind.Local).AddTicks(5101));
        }
    }
}
